home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10264 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: chrism.demon.co.uk!chris
  2. From: Chris Marriott <chris@chrism.demon.co.uk>
  3. Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc
  4. Subject: Re: Help finding contents of current directory.
  5. Date: Fri, 15 Mar 1996 22:13:52 +0000
  6. Organization: SkyMap Software
  7. Distribution: world
  8. Message-ID: <zux+jJAgueSxEwJN@chrism.demon.co.uk>
  9. References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com>
  10.  <3149D3CC.7D67@gate.net>
  11. NNTP-Posting-Host: chrism.demon.co.uk
  12. X-NNTP-Posting-Host: chrism.demon.co.uk
  13. MIME-Version: 1.0
  14. X-Newsreader: Turnpike Version 1.11 <xvymwJsTYh8aYs0yGmHsPZXi9Q>
  15.  
  16. In article <3149D3CC.7D67@gate.net>, Dale Hollon <hollon@gate.net>
  17. writes
  18. >I am trying to get a listing of the files in the current directory. I realize I 
  19. >will have to use 
  20. >stat to determin wether it is a file or a directory.  But how do I find out 
  21. >what's in the 
  22. >directory in the first place.
  23.  
  24. Win16: call "_dos_findfirst", "_dos_findnext"
  25. Win32: call "FindFirstFile", "FindNextFile", "FindClose".
  26.  
  27. To get information about a file/directory you retrieve with either of
  28. those methods, call "_stat".
  29.  
  30. Chris
  31. --------------------------------------------------------------------------
  32.  Chris Marriott, Warrington, UK      | Author of SkyMap v3 award-winning 
  33.  chris@chrism.demon.co.uk            | shareware Win31/Win95 planetarium.
  34.             For full info, see http://www.execpc.com/~skymap  
  35.       Author member of Association of Shareware Professionals (ASP) 
  36. -------------------------------------------------------------------------- 
  37.  
  38.